package com.basin.micro.gateway.prop;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "basin.auth.props")
@AllArgsConstructor
@NoArgsConstructor
public class BasinAuthProps {
    /**
     * 接口路由配置信息的redis键
     */
    private String authUriConfigRedisKey = "basin:auth:uri-config-info";
    /**
     * 白名单用户的redis键
     */
    private String authWhiteUserIdRedisKey = "basin:auth:white-user-id";
    /**
     * 白名单IP的redis键
     */
    private String authWhiteIpRedisKey = "basin:auth:white-ip";
    /**
     * 白名单URI的redis键
     */
    private String authWhiteUriRedisKey = "basin:auth:white-uri";
    /**
     * 用户权限集合的redis键
     */
    private String authUserPermissionsRedisKey = "basin:auth:user-permissions-info";
}
